package com.yiren.manager.utils;

public enum InteractTypeEnum {
	TYPE_1(1),TYPE_2(2),TYPE_3(3),TYPE_4(4);
	
	private int type;

	private InteractTypeEnum(int type) {
		this.type = type;
	}

	public static InteractTypeEnum valueof(int type) {
		switch (type) {
		case 1:
			return TYPE_1;
		case 2:
			return TYPE_2;
		case 3:
			return TYPE_3;
		case 4:
			return TYPE_4;
		default:
			return null;
		}
	}

	public int value() {
		return this.type;
	}
}
